package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.entity.StoreProjectStage;
import com.mybatisflex.core.service.IService;

import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2024-02-26
 */
public interface StoreProjectStageService extends IService<StoreProjectStage> {

    boolean haveSystemStageName(String storeUid, String uid, String projectUid, String stageName);

    boolean updateEnabled(String storeUid, String uid, Integer enabled, String staffUid, String staffName);

    int dropBean(String storeUid, String uid);

    List<StoreProjectStage> getByProjectUid(String projectUid, Integer enabled);

    int getMaxShowOrder(String storeUid, String projectUid);

    StoreProjectStage getGtOrderNum(String storeUid, String projectUid, Integer orderNum);

    StoreProjectStage getLtOrderNum(String storeUid, String projectUid, Integer orderNum);

    // 设置序号
    boolean updateOrderNum(String storeUid, String uid, Integer orderNum, String staffUid, String staffName);


    StoreProjectStage getByUid(String uid);
}
